package com.eastedu.client.ppt;

import com.eastedu.repository.ppt.dto.PptVideoMappingDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * The interface File client.
 *
 * @author zhangzhishuai
 */
@FeignClient(name = "infrastructure-courseware-video-relation-service", path = "/infrastructure-courseware-video-relation-service")
public interface PptVideoClient {
    /**
     * Save mapping info response entity.
     *
     * @param pptVideoMappings the ppt video mappings
     * @return 成功数量
     */
    @PostMapping("/callback")
    Integer saveMappingInfo(@RequestBody List<PptVideoMappingDTO> pptVideoMappings);
}
